﻿using System.ComponentModel;

namespace Tms.Model
{
    public class ProgressStatus: INotifyPropertyChanged   //20200523 修改
    {
        //进度条A 
        private double _PercentA = 0;
        public double PercentA
        {
            get { return _PercentA; }
            set
            {
                _PercentA = value;
                NotifyPropertyChanged("PercentA");
            }

        }

        //进度条B
        private double _PercentB = 0;
        public double PercentB
        {
            get { return _PercentB; }
            set
            {
                _PercentB = value;
                NotifyPropertyChanged("PercentB");
            }

        }

        //进度条--AB共用
        private double _Percent = 0;        
        public double Percent
        {
            get { return _Percent; }
            set
            {
                _Percent = value;
                NotifyPropertyChanged("Percent");
            }
            
        }

        //进度条--序列
        private double _PercentSeq = 0;
        public double PercentSeq
        {
            get { return _PercentSeq; }
            set
            {
                _PercentSeq = value;
                NotifyPropertyChanged("PercentSeq");
            }

        }


        /******************************************************/

        //接口实现
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
